package com.ssm.test.controller;

import com.ssm.test.model.FactoryBMW320;
import com.ssm.test.model.FactoryBMW523;

import org.springframework.beans.factory.annotation.Autowired;

public class BMW4sCompanny {

    @Autowired
    private FactoryBMW320 factoryBMW320;

    @Autowired
    private FactoryBMW523 factoryBMW523;

    public void NeedBMW320() {
        System.out.println(1);
        System.out.println("需要一辆A型发动机带A型空调.\n" + factoryBMW320.createEngine() + "\n" + factoryBMW523.createAircondition());
    }

}
